package org.example.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@ComponentScan("org.example")
//@PropertySource：加载类路径 jdbc.properties 文件
@PropertySource("classpath:jdbc.properties")
@Import({jdbcconfig.class, mybatisconfig.class})
//开启注解式事务驱动
@EnableTransactionManagement//开启事务管理
public class springconfig {

}

